home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 May / macformat_103_may_2001.iso / Shareware / Utilities / MacGhostView Folder / ghostscript / gs6.01 / lib / pdf2ps.bat < prev    next >
Encoding:
DOS Batch File  |  2000-11-21  |  447 b   |  23 lines  |  [TEXT/R*ch]

  1. @echo off 
  2. @rem $Id: pdf2ps.bat,v 1.1 2000/03/09 08:40:40 lpd Exp $
  3. @rem Convert PDF to PostScript.
  4.  
  5. if "%1"=="" goto usage
  6. if "%2"=="" goto usage
  7. echo -dNOPAUSE -dBATCH -sDEVICE#pswrite >_.at
  8. :cp
  9. if "%3"=="" goto doit
  10. echo %1 >>_.at
  11. shift
  12. goto cp
  13.  
  14. :doit
  15. rem Watcom C deletes = signs, so use # instead.
  16. gs -q -sOutputFile#%2 @_.at %1
  17. goto end
  18.  
  19. :usage
  20. echo "Usage: pdf2ps [-dASCII85DecodePages=false] [-dLanguageLevel=n] input.pdf output.ps"
  21.  
  22. :end
  23.